import request from '@/utils/request'

export function collect (param) {
  return request({
    url: '/api/server/collect/insert',
    method: 'post',
    data: param
  })
}
export function checkCollect (param) {
  return request({
    url: '/api/server/collect/checkCollect?publishId=' + param.publishId + '&openId=' + param.openId,
    method: 'get'
  })
}
export function queryByPage (data) {
  return request({
    url: '/api/server/collect/queryByPage',
    method: 'post',
    data
  })
}
